﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;

namespace YzApi.Controllers
{
    /// <summary>
    /// 
    /// </summary>
    public class BaseController : ControllerBase
    {
        private DbContext _dbContext;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="dbContext"></param>
        public BaseController(DbContext dbContext)
        {
            _dbContext = dbContext;
            _dbContext.Database.BeginTransaction();
        }
    }
}
